<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 1 
        const xhr = new XMLHttpRequest();
        // 2 不写第三个参数 默认是异步
        xhr.open('GET','http://localhost:8888/test/third?name6666=zs');
        xhr.onload = function(){
            const res = JSON.parse(xhr.responseText);
            console.log(res.message);
        }
        xhr.send();
    </script>
</body>
</html>